cmake_minimum_required(VERSION 3.16)

project(dome1 LANGUAGES C)

add_executable(dome1 main.c)

find_package(SQLite3 REQUIRED)
target_link_libraries(dome1 SQLite::SQLite3 -latomic)

include(GNUInstallDirs)
install(TARGETS dome1
    LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
    RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
)
